﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Petroleum.Tool;
using Petroleum.DB.Model;
using Petroleum.Model;
using HZH_Controls.Forms;

namespace Petroleum.UC
{
    public partial class TreeControlV2 : UserControl
    {
        public TreeControlV2()
        {
            InitializeComponent();
        }
   
        private void TreeControlV2_Load(object sender, EventArgs e)
        {
            
        }
        private void ucBtnExt1_BtnClick(object sender, EventArgs e)
        {
            //string path = "D:\\";
            //Session.BasicInf = new BasicInf() 
            //{
            // WellName = "三月",
            //  WellType = "ABC"
            //};
            //Session.FormationPressure = new FormationPressure()
            //{
            //    list = new List<Pressure>() 
            //    {
            //        new Pressure(){ Age = "100", TVD = 100 }
            //    }
            //};
            //SessionDynamic session =  new SessionDynamic() 
            //{
            //       BasicInf = Session.BasicInf,
            //        CasingProgram = Session.CasingProgram,
            //         FormationPressure = Session.FormationPressure,
            //          MPAList = Session.MPAList,
            //           ProgresPlanList = Session.ProgresPlanList,
            //            ProjectId = Session.ProjectId,
            //             Team = Session.Team,
            //              TemplateFile = "D:\\Desktop\\Word模板版V3_简易版.docx",
            //               WellName = "跟层名字",
            //                WellTrajectory = Session.WellTrajectory
            //};
            //if (string.IsNullOrEmpty(session.TemplateFile))
            //{
            //    //模板路径为空，请先创建项目
            //    FrmTips.ShowTipsWarning(this.FindForm(), $"模板路径为空，请先创建项目");
            //    return;
            //}
            //WordUtil.CreateDoc(session, session.TemplateFile, path);
        }
    }
}
